package com.apolo.layui.apololayui.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/test")
public class TestController extends BaseController{


    @RequestMapping("/all")
    public String testLayui(){
        return "all";
    }

    @ResponseBody
    @RequestMapping("/json")
    public String testJson(Model model){


        return "This is json";
    }
}
